import 'package:densefog/block_item.dart';

class LevelManager {
  final _levels = <List<BlockItem>>[
    //1
    [
      BlockItem(0, 0, 0, 2, 1),
      BlockItem(2, 2, 0, 2, 2),
      BlockItem(3, 0, 2, 2, 1),
      BlockItem(4, 2, 2, 2, 1),
      BlockItem(5, 0, 3, 1, 1),
      BlockItem(6, 1, 3, 1, 1),
      BlockItem(7, 2, 3, 1, 1),
    ],
    //2
    [
      BlockItem(0, 0, 0, 2, 1),
      BlockItem(1, 0, 1, 2, 1),
      BlockItem(2, 2, 0, 2, 2),
      BlockItem(3, 0, 2, 2, 1),
      BlockItem(4, 2, 2, 2, 1),
      BlockItem(5, 0, 3, 1, 1),
      BlockItem(6, 1, 3, 1, 1),
      BlockItem(7, 2, 3, 1, 1),
      BlockItem(8, 1, 4, 1, 1),
      BlockItem(9, 2, 4, 2, 1),
    ],
    //3
    [
      BlockItem(0, 0, 0, 1, 2),
      BlockItem(1, 1, 0, 2, 1),
      BlockItem(2, 1, 1, 2, 2),
      BlockItem(3, 0, 2, 1, 2),
      BlockItem(4, 3, 1, 1, 2),
      BlockItem(5, 1, 3, 1, 2),
      BlockItem(6, 2, 3, 1, 1),
      BlockItem(7, 3, 3, 1, 1),
      BlockItem(8, 2, 4, 1, 1),
    ],
    //4
    [
      BlockItem(0, 0, 0, 1, 1),
      BlockItem(1, 1, 0, 2, 2),
      BlockItem(2, 3, 0, 1, 2),
      BlockItem(3, 0, 1, 1, 1),
      BlockItem(4, 0, 2, 1, 2),
      BlockItem(5, 1, 2, 1, 2),
      BlockItem(6, 2, 2, 2, 1),
      BlockItem(7, 2, 3, 1, 1),
      BlockItem(8, 3, 3, 1, 1),
      BlockItem(9, 1, 4, 2, 1),
    ],
    //5
    [
      BlockItem(0, 0, 0, 1, 2),
      BlockItem(1, 1, 0, 2, 2),
      BlockItem(2, 3, 0, 1, 2),
      BlockItem(3, 0, 2, 1, 2),
      BlockItem(4, 1, 2, 2, 1),
      BlockItem(5, 3, 2, 1, 2),
      BlockItem(6, 1, 3, 1, 1),
      BlockItem(7, 2, 3, 1, 1),
      BlockItem(8, 0, 4, 1, 1),
      BlockItem(9, 3, 4, 1, 1),
    ],
  ];

  int get levelCount => _levels.length;

  List<BlockItem> getLevel(int levelIndex) {
    return _levels[levelIndex];
  }
}

final levelManager = LevelManager();
